package com.uex.dev.manage.admin.controller;

import com.uex.dev.manage.admin.service.IDeviceService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

/**
 * @author lzs
 * @create 2024/02/23
 * @description
 */
@CrossOrigin(origins = "*", maxAge = 3600)
@Tag(name = "工厂APK管理")
@RequestMapping("/addDevice")
@RestController
public class AdminApkController {

    @Resource
    private IDeviceService deviceService;

//    @Operation(description = "上传收单机信息")
//    @PostMapping("/robot")
//    public ModelResult<?> addRobot(@RequestBody RobotInfo addRobotReq) {
//        return deviceService.addRobot(addRobotReq) ? ModelResult.SUCCESS_RESULT : ModelResult.SYSTEM_ERROR_RESULT;
//    }

//    @Operation(description = "上传扫描仪信息")
//    @PostMapping("/scanner")
//    public ModelResult<?> addScanner(@RequestBody RobotInfo addScannerReq) {
//        return deviceService.addScanner(addScannerReq) ? ModelResult.SUCCESS_RESULT : ModelResult.SYSTEM_ERROR_RESULT;
//    }

//    @Operation(description = "上传云盾信息")
//    @PostMapping("/uhub")
//    public ModelResult<?> addUhub(@RequestBody AddUhubReq addUhubReq) {
//        return deviceService.addUhub(addUhubReq) ? ModelResult.SUCCESS_RESULT : ModelResult.SYSTEM_ERROR_RESULT;
//    }
}

